/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Bridge;

/**
 *
 * @author MBG
 */
public class Evento {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Carniceria[] carnicerias = new Carniceria[3];
        
        carnicerias[0] = new Chuletas(new ChuletaCentro());
        carnicerias[1] = new Chuletas(new ChuletaCerdo());
        carnicerias[2] = new Chuletas(new ChuletaRes());
        
        for(Carniceria carniceria: carnicerias)
        {
            System.out.println(carniceria.nombreChuleta());
            System.out.println(carniceria.getTipoChuleta());
        }
    }
}
